const redisConfig = require('../config/RedisConfig')
const DB = require('../config/Sequelize')
const BackCode = require("../utils/BackCode");
const BannerService = {
    list: async (location) => {
        const bannerList = await DB.Banner.findOne({ where: { location }, raw: true })
        return BackCode.buildSuccessAndData({ data: bannerList })
    },
}
module.exports = BannerService